package com.vms;

import android.util.Log;

public class NetLog {
	public static final String TAG = "shdd";
	private boolean temporaryOff;

	public NetLog(String targetTag, boolean temporaryOff) {
		super();
		this.targetTag = targetTag;
		this.temporaryOff = temporaryOff; 
	}
	
	public NetLog(String targetTag) {
		this(targetTag, false);
	}
	
	protected String targetTag;

	public void e(String format, Object...notumValuesTable) {
		if(temporaryOff) return;
		Log.e(TAG + " " + targetTag, String.format(format, notumValuesTable));
	}
	
	public void v(String format, Object...notumValuesTable) {
		if(temporaryOff) return;
		Log.v(TAG + " " + targetTag, String.format(format, notumValuesTable));
	}
	
	public void d(String format, Object...notumValuesTable) {
		if(temporaryOff) return;
		Log.d(TAG + " " + targetTag, String.format(format, notumValuesTable));
	}
	
	public void i(String format, Object...notumValuesTable) {
		if(temporaryOff) return;
		Log.i(TAG + " " + targetTag, String.format(format, notumValuesTable));
	}
	
	
	
	public static void vv(String format, Object...notumValuesTable) {
		Log.v(TAG, String.format(format, notumValuesTable));
	}
	
	public static void dd(String format, Object...notumValuesTable) {
		Log.d(TAG, String.format(format, notumValuesTable));
	}
	
	public static void ii(String format, Object...notumValuesTable) {
		Log.i(TAG, String.format(format, notumValuesTable));
	}
	
	public static void ee(String format, Object...notumValuesTable) {
		Log.i(TAG, String.format(format, notumValuesTable));
	}
}
